package com.tt.fashionWebSite.dto;

import java.io.Serializable;

/**
 * **********************************************************************
 * <p/>
 * iServiceSoft Inc © - 2009 All Rights Reserved
 * _____________________________________________
 * <p/>
 * NOTICE:  All information contained herein is, and remains
 * the property of iServiceSoft. Intellectual and technical concepts
 * contained herein are proprietary of iServiceSoft and may be covered
 * by U.S. and Foreign Patents, patents in process, and are protected
 * by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from iServiceSoft Incorporated.
 * <p/>
 * ***********************************************************************
 */

public class JsonResponseDto<ResponseObject> implements Serializable {

   private int code;

   private String message;

   private ResponseObject responseObject;

   public JsonResponseDto(int code) {
      this.code = code;
      this.message = "";
   }

   public JsonResponseDto(ResponseObject responseObject, int code) {
      this.code = code;
      this.responseObject = responseObject;
      this.message = "";
   }

   public JsonResponseDto(int code, String message) {
      this.code = code;
      this.message = message;
   }

   public JsonResponseDto(ResponseObject responseObject, int code, String message) {
      this.code = code;
      this.message = message;
      this.responseObject = responseObject;
   }

   public String getMessage() {
      return message;
   }

   public void setMessage(String message) {
      this.message = message;
   }

   public ResponseObject getResponseObject() {
      return responseObject;
   }

   public void setResponseObject(ResponseObject responseObject) {
      this.responseObject = responseObject;
   }

   public int getCode() {
      return code;
   }

   public void setCode(int code) {
      this.code = code;
   }
}
